package com.traffic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.traffic.entity.Friend;
import com.traffic.entity.ReturnFriend;
import com.traffic.entity.UserInfo;
import com.traffic.model.FriendResult;
import com.traffic.model.newFriendResult;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Map;

public interface FriendService extends IService<Friend>{
    Boolean apply(Long userId, Long targetId);

    Boolean accept(Long id);

    Boolean refuse(Long id);

    Boolean delete(Long userId, Long targetId);

    List<newFriendResult> getInfoList(Long userId);

    List<ReturnFriend> getFriendList(Long userId);

    Integer isFriend(Long userId, Long targetId);

    List<Long> getFriend(Long userId);

}
